/* 
 * File:   BoardView.h
 * Author: rc
 *
 * Created on May 28, 2010, 1:15 PM
 */

#ifndef _BOARDVIEW_H
#define	_BOARDVIEW_H

#include "SDL/SDL.h"
#include "../../Model/headers/Observer.h"
#include "../../Controller/headers/BoardController.h"
#include "../../Model/headers/Subject.h"

class BoardView: public Observer {
public:
    BoardView(BoardController*);
    BoardView(const BoardView& orig);
    virtual ~BoardView();
    SDL_Surface* getSurface() const;
    void update(Subject *subjectChanged); //from its parent (Subject).    
private:
    void initSurface();
    SDL_Surface *mSurface;
    BoardController *mSubject;

};

#endif	/* _BOARDVIEW_H */

